package com.haoxin.ai_course.modules.course.biz;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.haoxin.ai_course.common.utils.HttpJsonResult;
import com.haoxin.ai_course.modules.course.entity.AcCategory;
import com.haoxin.ai_course.modules.course.entity.AcCourse;
import com.haoxin.ai_course.modules.course.entity.PO.AcCategoryPO;
import com.haoxin.ai_course.modules.course.entity.VO.AcCategoryVO;
import com.haoxin.ai_course.modules.course.entity.VO.AcCourseVO;
import com.haoxin.ai_course.modules.course.service.AcCategoryService;
import com.haoxin.ai_course.modules.course.service.AcCourseService;
import com.haoxin.ai_course.modules.sys.service.SysUserService;

import lombok.extern.slf4j.Slf4j;
import ma.glasnost.orika.MapperFacade;

/**
 * 答题结果表
 * 
 * @author xingxiangguo
 * @email bugcn@qq.com
 * @date 2022-06-06 09:44:49
 */
@Slf4j
@Component
public class AcCourseBusiness {
	@Autowired
	 private MapperFacade mapperFacade;
	@Autowired
	private SysUserService sysUserService;
	@Autowired
	AcCourseService acCourseService;  ;
	
	public HttpJsonResult<List<AcCourseVO>> fullList() {
		HttpJsonResult<List<AcCourseVO>>  result = new HttpJsonResult<List<AcCourseVO>> ();
		List<AcCourse> list = acCourseService.list();
		List<AcCourseVO> voList = mapperFacade.mapAsList(list, AcCourseVO.class);
		result.setData(voList);
		return result;
	}
	
	   
}
